{% extends 'Admin/AdminBase.html' %}


{% block header %}
<link rel="stylesheet" href="{{ url_for('static',filename='Admin/plugins/summernote/summernote-bs4.css') }}">
{% endblock %}


{% block contenter %}
    {% from "Admin/AdminMacros.html" import input_text_group,textarea_group,upload_image_group %}

    <div class="row">
        <div class="col-md-12">
            <div class="card card-primary card-outline">
                <div class="card-header">
                    <h1 class="card-title">创建新内容</h1>
                    <div class="float-right">
                        <button type="reset" class="btn btn-default btn-sm"><i class="fas fa-reply"></i> 返回</button>
                    </div>
                </div>
                <div class="card-body">
                    <div class="row">
                        {{ input_text_group(label_txt='文章标题(必填)：',input_id="in_title",col_sm="col-sm-8",input_placeholder="请输入文章标题...")}}
                    </div>
                    <div class="row">
                        {{ upload_image_group(input_id='upload_image') }}
                    </div>
                    <div class="form-group">
                        {{ textarea_group(textarea_id='in_contexts',label_txt='文章内容(必填)',textarea_placeholder='请输入文章内容...') }}
                    </div>
                </div>
                <div class="card-footer">
                    <div class="float-left">
                        <button type="submit" id="save" class="btn btn-primary btn-sm"><i class="far fa-file-alt"></i> 保存</button>
                    </div>
                    <div class="float-right">
                        <button type="reset" class="btn btn-default btn-sm"><i class="fas fa-reply"></i> 返回</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

{% endblock %}



{% block footer %}
    <script type="text/javascript" src="{{ url_for('static',filename='Admin/plugins/summernote/summernote-bs4.min.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static',filename='Admin/plugins/summernote/lang/summernote-zh-CN.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static',filename='Admin/js/ajaxupload.js') }}"></script>

    <script type="text/javascript" src="{{ url_for('static',filename='Admin/js/app/aticles.js') }}"></script>
    <script type="text/javascript">
            var theLoadImage = '';
            var ActionType_del = "delPlug";
            var ActionType_push = "upimage";
            var ActionType_uploadPath = "aaa";


        $(function () {




            AtclesInfo();
        });
    </script>
<script type="text/javascript" src="{{ url_for('static',filename='Admin/js/QuitPIC.js') }}"></script>
{% endblock %}